<?php

    $this->Html->css('controllers/TestRegister/admin.css?2', array('block' => 'stylesTop'));
    $this->Html->script('controllers/TestRegister/admin.js?3', array('block' => 'scriptBottom'));
    $appBosch->crud = $this->TioCachas->urlsCRUD();
    $appBosch->urlTests = $this->Html->url(array('controller' => 'Schedules', 'action' => 'getTestForUser'));
    $appBosch->urlTaxi = $this->Html->url(array('action' => 'createUserTransport'));

?>

<div id="titlesGridscursos">
    <h2><?php echo __('Curso disponibles'); ?></h2>

    <h2><?php echo __('Mis cursos'); ?></h2>
</div>
<div id="gridDisponibles" > </div>
<div id="gridInscritos" > </div>

<script id="windowTemplate" type="text/x-kendo-template">
    <div class="form-group">
        <label for="street"><?php echo __('Requiero taxi: '); ?></label>
        <label class="radio-inline">
            <input type="radio" name="reqTaxi" id="inlineRadio1" value="0" checked> <?php echo _('No'); ?>
        </label>
        <label class="radio-inline">
            <input type="radio" name="reqTaxi" id="inlineRadio2" value="1"> <?php echo _('Si'); ?>
        </label>
    </div>

    <form id="taxiForm">
        <fieldset disabled>
            <div class="form-group">
                <label for="street"><?php echo __('Calle'); ?></label>
                <input type="text" class="form-control required" id="street" placeholder="<?php echo __('Calle'); ?>" value="<?php echo isset($appBosch->address['LogAddressUser']) ? $appBosch->address['LogAddressUser']['street'] : '' ?>">
            </div>
            <div class="form-group">
                <label for="number"><?php echo __('Número'); ?></label>
                <input type="text" class="form-control required" id="number" placeholder="<?php echo __('Número'); ?>" value="<?php echo isset($appBosch->address['LogAddressUser']) ? $appBosch->address['LogAddressUser']['number'] : '' ?>">
            </div>
            <div class="form-group">
                <label for="colonia"><?php echo __('Colonia'); ?></label>
                <input type="text" class="form-control required" id="colonia" placeholder="<?php echo __('Colonia'); ?>" value="<?php echo isset($appBosch->address['LogAddressUser']) ? $appBosch->address['LogAddressUser']['colony'] : '' ?>">
            </div>
            <div class="form-group">
                <label for="btwStreets"><?php echo __('Entre las calles'); ?></label>
                <input type="text" class="form-control" id="btwStreets" placeholder="<?php echo __('Entre las calles'); ?>" value="<?php echo isset($appBosch->address['LogAddressUser']) ? $appBosch->address['LogAddressUser']['between_streets'] : '' ?>">
            </div>
        </fieldset>
        <button id="saveRequest" type="button" class="btn btn-default"><?php echo __('Guardar'); ?></button>
    </form>
</script>

<?php $this->start('jsVars'); ?>
<script type="text/javascript">
    var appBosch = <?php echo json_encode($appBosch); ?>;
</script>
<?php $this->end();